package com.jdk18.digui;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by xuyiwei on 2018/7/11.
 */
public class TreeList {

    private Long id;

    private Long parent_id;

    private String name;

    List<TreeList> sonTreeList = new ArrayList<>();

    public TreeList(Long id, Long parent_id, String name) {
        this.id = id;
        this.parent_id = parent_id;
        this.name = name;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getParent_id() {
        return parent_id;
    }

    public void setParent_id(Long parent_id) {
        this.parent_id = parent_id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<TreeList> getSonTreeList() {
        return sonTreeList;
    }

    public void setSonTreeList(List<TreeList> sonTreeList) {
        this.sonTreeList = sonTreeList;
    }

    @Override
    public String toString() {
        return "TreeList{" +
                "id=" + id +
                ", parent_id=" + parent_id +
                ", name='" + name + '\'' +
                '}';
    }
}
